package com.li.synchronizedway;

import java.util.HashMap;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.Semaphore;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**  
* 类说明   
*  
* @author ****  
* @date 2018年3月17日  新建  
*/
public class TestLock {
	public static Lock lock = new ReentrantReadWriteLock().writeLock();
	public static AtomicInteger a = new AtomicInteger();
	public static Semaphore c = new Semaphore(3);
	public static void main(String[] args) throws InterruptedException, BrokenBarrierException {
		StringBuilder sb = new StringBuilder();
		sb.append("a");
	}
}
  